//
//  ModleShouyiDetail.m
//  投融保
//
//  Created by 523 on 14-1-21.
//  Copyright (c) 2014年 木叶科技. All rights reserved.
//

#import "ShouyiDetailPerson.h"

@implementation ShouyiDetailPerson

//@synthesize loanAmount,loanName,touziAmount,timeLimit,timeLimitUnit,effectiveDateTime,expireDateTime,amount,date,investorRealName,interestRate;
+ (id)parseFromDict:(NSDictionary *)d{
    ShouyiDetailPerson *o   = [[ShouyiDetailPerson alloc] init];
    
    o.loanName              = [[d objectForKey:@"loanItem"] objectForKey:@"loanName"];
    o.loanAmount            = [[d objectForKey:@"loanItem"] objectForKey:@"loanAmount"];
    o.interestRate          = [[d objectForKey:@"loanItem"] objectForKey:@"interestRate"];
    o.timeLimit             = [[d objectForKey:@"loanItem"] objectForKey:@"timeLimit"];
    o.timeLimitUnit         = [[d objectForKey:@"loanItem"] objectForKey:@"timeLimitUnit"];
    o.effectiveDateTime     = [[d objectForKey:@"trade"] objectForKey:@"effectiveDateTime"];
    o.expireDateTime        = [[d objectForKey:@"trade"] objectForKey:@"expireDateTime"];
    o.amount                = [[d objectForKey:@"jjrTrade"] objectForKey:@"amount"];
    o.touziAmount           = [[d objectForKey:@"tradeItem"] objectForKey:@"amount"];
    o.investorRealName      = [[d objectForKey:@"tradeItem"] objectForKey:@"investorRealName"];
    o.date                  =[[d objectForKey:@"tradeItem"] objectForKey:@"date"];

    return o;
}

@end
